package cn.fourhundredandeighteen.dao;

import cn.fourhundredandeighteen.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseDao {
    int deleteByPrimaryKey(Long courseId);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Long courseId);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    List<Course> selectStudentCreateCourse(Long studentId);

    List<Course> selectCourse(@Param("courseId") List<Long> courseId);

    int updataStudentCount(@Param("courseId") Long courseId,@Param("count") int count);

    List<Course> selectAll();
}